<?php

namespace Biz;

use Base\BaseOrmModel;
use Base\Exception\NoRecordException;

class CountClickLog extends \Base\BaseBiz
{
   /*插入点击立即兑换生成记录*/
   public function insertCountClickLog($type,$user_id){
       if (!$type) {
        return false;
       }
       if (!$user_id) {
           return false;
       }
       $count_click_log_class = new \Orm\CountClickLog\CountClickLogClass();
       $count_click_log_class["link_type"] = $type;
       $count_click_log_class["user_id"] = $user_id;
       $count_click_log_class["insert_time"] = date('y-m-d h:i:s',time());
       $count_click_log_class->insert();
       if ($count_click_log_class["id"]>0) {
           return $count_click_log_class;
       }
       return false;
   }
}